package com.edu.contorller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HeaderTest {

    @RequestMapping("headerTest")
    public String headerTest(@RequestHeader("User-Agent1") String userAgent){
        System.out.println(userAgent);
        return "index.jsp";
    }
}
